﻿#ifndef MYCONTACTRESULTCALLBACK_H
#define MYCONTACTRESULTCALLBACK_H

#include<btosg.h>
class MyContactResultCallback : public btCollisionWorld::ContactResultCallback
{
public:
    bool m_collisionDetected;

    MyContactResultCallback() : m_collisionDetected(false) {}

    virtual btScalar addSingleResult(btManifoldPoint& cp, const btCollisionObjectWrapper* colObj0Wrap, int partId0, int index0, const btCollisionObjectWrapper* colObj1Wrap, int partId1, int index1)
    {
        m_collisionDetected = true;
        return 0;
    }
};
#endif // MYCONTACTRESULTCALLBACK_H
